package com.dw.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dw.dao.UserDao;
import com.dw.entity.User;
import com.dw.service.UserService;

@Service
public class IUserService implements UserService{
	@Autowired
	private UserDao userDao;
	
	@Override
	public List<User> getAllUser() {
		return userDao.getAllUser();
	}

	@Override
	public void addUser(User user) {
		userDao.addUser(user);
	}

	@Override
	public User findById(int id) {
		
		return userDao.findById(id);
	}


}
